package com.jy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jy.mapper.TeacherMapper;
import com.jy.pojo.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherService extends ServiceImpl<TeacherMapper, Teacher> implements IService<Teacher> {
    @Autowired
    TeacherMapper teacherMapper;

    public Page<Teacher> findPage(Integer pn, Integer ps, Teacher teacher) {
        Page<Teacher> page = new Page<>(pn, ps);
        return teacherMapper.findPage(page,teacher);
    }
}
